﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AbstractFactory
{
    public class KmeansFactory : IFactory
    {
        public IClustering CreateClustering()
        {
            return new KmeansClustering();
        }

        public IParams CreateParams()
        {
            // 创建Kmeans算法对应的参数实例（可在此设置自定义参数值）
            return new KmeansParams { ClusterCount = 4 }; // 示例：设置簇数为4
        }
    }
}
